//reduce 每个状态改变

const test=(state=0,action)=>{
  let {type,data,target}=action
  console.log(111,action);
  switch (type) {
    case 'increment':
      return state+data
    
    case 'decrement':
      return state-data
    
    default:
      return 0
  }
}

export default {test}